package com.itheima.homework;

public class HomeWork6 {
    public static void main(String[] args) {
        int count = 0;
        int count1 = 0;
        double[] arr = {10.4,-3,-6.2,1.2,-6.1,-19,-3.8,0.9,-4.5,5.5};
        for (int i = 0; i < arr.length; i++) {
            if(arr[i]>0){
                count++;
            }else{
                count1++;
            }
        }
        System.out.println("赚钱的股票有"+count+"只");
        System.out.println("亏钱的股票有"+count1+"只");
    }
}
